package com.es.code.commons;

/**
 * 接口返回结果辅助类
 *
 * @author tiansk
 */
public enum ResultConstant {

    /**
     * 公共
     */
    SUCCESS("1", "成功"),
    FAILED("11001", "失败"),
    INCOMPLETE_PARAMETERS("11002", "参数不完整")
    ;


    public String code;
    public String message;

    ResultConstant(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
